package com.taotao.portal.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.taotao.portal.service.IContentService;

/**
 * 首页控制层
 * 
 * @author Administrator
 *
 */
@Controller
public class IndexController {

	@Autowired
	private IContentService contentService;

	@RequestMapping(value = "/index")
	public String showIndex(Model model) {
		String contentMaps = this.contentService.getContentStrs();
		model.addAttribute("ad1", contentMaps);
		return "index";
	}
}